@echo off
echo Starting PlantUML Server...
echo.

REM 检查Java是否安装
java -version >nul 2>&1
if errorlevel 1 (
    echo Error: Java is not installed or not in PATH
    echo Please install Java 17 or later
    pause
    exit /b 1
)

REM 检查Maven是否安装
mvn -version >nul 2>&1
if errorlevel 1 (
    echo Error: Maven is not installed or not in PATH
    echo Please install Maven 3.6 or later
    pause
    exit /b 1
)

echo Java and Maven found. Starting server...
echo.

REM 编译并运行项目
mvn spring-boot:run

pause 